//
//  UIView+response.swift
//  微博
//
//  Created by mac on 15/12/22.
//  Copyright © 2015年 mac. All rights reserved.
//

import UIKit

extension UIView {
    func loadNavgationController() ->UINavigationController?{
        var next = nextResponder()
        repeat {
            if let objcNext = next as? UINavigationController {
                return objcNext
            }
            next = next?.nextResponder()
            print(next)
        }while(next != nil)
        
        return nil
    }
}
